package com.sright.bcard.content.dal.dao.impl;

import com.sright.bcard.common.service.share.base.dao.BaseDAOImpl;
import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.content.dal.dao.DataCardShareNumDAO;
import com.sright.bcard.content.dal.entity.DataCardShareNumDO;
import com.sright.bcard.content.dal.mapper.DataCardShareNumDOMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class DataCardShareNumDAOImpl extends BaseDAOImpl<DataCardShareNumDO> implements DataCardShareNumDAO {

    @Resource
    private DataCardShareNumDOMapper dataCardShareNumDOMapper;

    @Override
    protected BaseMapper<DataCardShareNumDO> getObjMapper() {
        return dataCardShareNumDOMapper;
    }

    @Override
    public DataCardShareNumDO selectByObject(DataCardShareNumDO dataCardShareNumDO) {
        return dataCardShareNumDOMapper.selectByObject(dataCardShareNumDO);
    }

    @Override
    public Integer selectSumByUserList(List<Long> userIdList) {
        return dataCardShareNumDOMapper.selectSumByUserList(userIdList);
    }

    @Override
    public Integer selectCountByUserList(List<Long> userIdList) {
        return dataCardShareNumDOMapper.selectCountByUserList(userIdList);
    }
}
